# vi: set ts=8 sw=8 sts=8 noexpandtab:

ifndef TOPDIR
TOPDIR := ..
endif

include	$(TOPDIR)/Config.mk


TARGET 		:= built-in.o
SUBDIRS		:= $(TARGET_SUB_ARCH)

OBJS		:= $(patsubst %.S, %.o, $(wildcard *.S))
OBJS		+= $(patsubst %.c, %.o, $(wildcard *.c))


all : compile $(OBJS)
	$(LD) $(LDFLAGS) $(LDRELOC) $(addsuffix /$(TARGET),$(SUBDIRS)) $(OBJS) -o $(TARGET)



include $(TOPDIR)/Rules.mk
	

